package com.fsc.comadapoc1.events
{
	import flash.events.Event;
	
	public class PanelChangeEvent extends Event
	{
		
		private const CHANGE_STATE : String = "changeState";
		
			
		/** The Portfolio panel view. **/
		public static const PORTFOLIOS_VIEW_STATE : String = "portfoliosViewState";
		
		/** The Portfolios panel view. **/
		public static const SEARCH_STATE : String = "searchPanelViewState";
		
		/** The Portfolio panel view **/
		public static const PORTFOLIO_VIEW_STATE : String = "portfolioViewState";
		
		/** The Subscriptions panel view **/
		public static const SUBSCRIPTIONS_VIEW_STATE : String = "subscriptionsViewState";
		
		/** The Subscriptions panel view **/
		public static const SUBSCRIBE_VIEW_STATE : String = "subscribeViewState";
		
		private var _state:String;
		
		public function get state():String
		{
			return _state;
		}
		
		public function set state(value:String):void
		{
			_state = value;
		}
		
		public function PanelChangeEvent(type:String)
		{
			super(CHANGE_STATE, true);
			state = type;
		}
		
		override public function clone():Event
		{
			return new PanelChangeEvent(this.type);
		}
	}
}